package cn.vin.thread;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author: Wu Shenzhuang
 * @Date: 2019/5/22 16:59
 */
public class ThreadLocalDemo {
    static ThreadLocal<String> tl = new ThreadLocal<>();
    static ReentrantLock rl = new ReentrantLock(true);
    static Condition condition = rl.newCondition();
    public static void main(String[] args) throws InterruptedException {
        rl.lock();
        condition.await();
        System.out.println("==========");
        rl.unlock();
    }
}
